package doantotnghiep.business;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import doantotnghiep.dao.ImportedMedicamentDao;
import doantotnghiep.model.ImportedDetail;
import doantotnghiep.model.ImportedMedicament;

public class ImportedMedicamentBusiness {
	@Autowired
	private ImportedMedicamentDao importedMedicamentDao;
 
	public List<ImportedMedicament> listImportedMedicament() {
		return  importedMedicamentDao.listImportedMedicament();
	}
	public void deleteImportedMedicament(int id){
		importedMedicamentDao.deleteImportedMedicament(id);
	}
	public void addImportedMedicament(ImportedMedicament importedMedicament){
		importedMedicamentDao.addImportedMedicament(importedMedicament);
	}
	public void addDetailImported(ImportedDetail details){
		importedMedicamentDao.addDetailImported(details);
	}
	public ImportedMedicament getInsertedImportedMedicament() {
		return importedMedicamentDao.getInsertedImportedMedicament();
	}
	public List<ImportedDetail> getDetailByImportedID(int id) {
		return importedMedicamentDao.getDetailByImportedID(id);
	}
	public List<ImportedMedicament> listImportedMedicamentByDate(String date) {
		return importedMedicamentDao.listImportedMedicamentByDate(date);
	}

}
